const http = require('http');

const PORT = 4000;
const HOST = '127.0.0.1';

const server = http.createServer((req, res) => {
  res.end('OK');
});

server.listen(PORT, HOST, () => {
  console.log(`Server running at http://${HOST}:${PORT}/`);
});

server.on('error', (err) => {
  console.error('ERROR:', err);
});
